export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { path: '/user/login', component: './User/Login' },
      { path: '/user/register', component: './User/Register' },
    ],
  },

  { path: '/welcome', icon: 'smile', component: './Welcome', name: '欢迎页' },
  {
    path: '/admin',
    icon: 'crown',
    name: '班级学员管理',
    //access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: '/admin/user' },
      { icon: 'table', path: '/admin/class', component: './Admin/Class', name: '班级管理' },
      { icon: 'table', path: '/admin/user', component: './Admin/User', name: '学员管理' },
    ],
  },

  {
    path: '/system',
    icon: 'crown',
    name: '系统信息管理',
    //access: 'canAdmin',
    routes: [
      { path: '/system', redirect: '/system/dept' },
      { icon: 'table', path: '/system/dept', component: './System/Dept', name: '部门管理' },
      { icon: 'table', path: '/system/emp', component: './System/Emp', name: '员工管理' },
    ],
  },

  // {
  //   path: '/stats'  ,
  //   icon: 'crown',
  //   name: '数据统计管理',
  //   access: 'canAdmin',
  //   routes: [
  //     { path: '/admin', redirect: '/admin/user' },
  //     { icon: 'table', path: '/admin/dept', component: './Admin/Dept', name: '员工信息统计' },
  //   ],
  // },

  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
